package com.xuecheng.api.content.model;


import com.xuecheng.api.content.model.dto.CourseBaseDTO;
import com.xuecheng.api.content.model.qo.QueryCourseModel;
import com.xuecheng.api.content.model.vo.CourseBaseVO;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

@Api(value = "课程基本信息增删改查",tags = "CourseBaseApi 测试",description = "基本课程信息增删改查")
public interface CourseBaseApi {

//    @ApiOperation("查询课程的方法")
//    List<CourseBase> queryAll();
    @ApiOperation("分页条件查询课程基本信息")
    PageVO queryCourseList(PageRequestParams params, QueryCourseModel model);

    @ApiOperation("添加coursebase课程信息和courseMark收费信息")
    CourseBaseDTO creatCourse(@RequestBody CourseBaseVO vo);

    @ApiOperation("根据课程id查询课程信息")
    CourseBaseDTO updatequeryById(@PathVariable Long courseBaseId);

    @ApiOperation("修课程信息")
    CourseBaseDTO updateCourseBase(@RequestBody CourseBaseVO vo);

    @ApiOperation("逻辑删除课程信息")
    void deleteCourseBase(@PathVariable Long courseBaseId);


}
